 <template>
  <div>
    <router-link to="/">
      <button>返回Home</button>
    </router-link>
    <List
      :items="['Wonderwoman', 'Ironman']"
      :item-click="(item) => (clicked = item)"
    />
    <p>Clicked hero: {{ clicked }}</p>
  </div>
</template>
<script>
import List from "./child";
export default {
  name: "Father",
  data() {
    return {
      clicked: ""
    }
  },
  components: { 
    List 
  }
};
</script>